#include "iot.h"

// char *descriptor =
// #include "descriptor.txt"
//     ;

char *descriptor = "{\"descriptors\":[{\"description\":\"Speaker\",\"methods\":{\"SetMute\":{\"description\":\"Set mute status\",\"parameters\":{\"mute\":{\"description\":\"Mute status\",\"type\":\"boolean\"}}},\"SetVolume\":{\"description\":\"Set volume level\",\"parameters\":{\"volume\":{\"description\":\"Volume level[0-100]\",\"type\":\"number\"}}}},\"name\":\"Speaker\",\"properties\":{\"mute\":{\"description\":\"Mute status\",\"type\":\"boolean\"},\"volume\":{\"description\":\"Volume level[0-100]\",\"type\":\"number\"}}},{\"name\":\"Light\",\"description\":\"Light\",\"properties\":{\"power\":{\"description\":\"Light power on/off\",\"type\":\"boolean\"}},\"methods\":{\"SetPower\":{\"description\":\"Turn light on/off\",\"parameters\":{\"power\":{\"description\":\"on/off\",\"type\":\"boolean\"}}}}}],\"session_id\":\"e50e69eb\",\"type\":\"iot\",\"update\":true}";
char *state = "{\"session_id\":\"e50e69eb\",\"states\":[{\"name\":\"Speaker\",\"state\":{\"mute\":false,\"volume\":60}},{\"name\":\"Light\",\"state\":{\"power\":false}}],\"type\":\"iot\",\"update\":true}";
// char *state =
// #include "state.txt"
//     ;

char *iot_get_descriptor(void)
{
    return descriptor;
}

char *iot_get_state(void)
{
    return state;
}
